﻿<%@ Page Language="C#" MasterPageFile="~/KhachHang/KhachHang.master" AutoEventWireup="true" CodeFile="SanPham.aspx.cs" Inherits="KhachHang_SanPham" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align: center">
        <div style="text-align: center">
            <div style="text-align: center">
                &nbsp;</div>
        </div>
    </div>
    
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <asp:DataList ID="DataList1" runat="server" CellSpacing="-1" RepeatColumns="3" OnItemDataBound="DataList1_ItemDataBound">
        <ItemTemplate>
            <div id="botron">
            <table align="center"  style="width: 310px; height: 430px; background-position: center top; background-image: url(hinh/botrondeal.jpg); background-repeat: no-repeat;">
                <tr>
                    <td style="width: 310px; height: 25px; font-size: 18px; color: #660000; text-align: left;">
                        <asp:HyperLink ID="hyp_tensp" runat="server">tensp</asp:HyperLink></td>  <!-- ten SP-->
                </tr>
                <tr>
                    <td style="width: 310px; height: 30px;">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 310px">
                            <tr>
                                <td style="width: 215px; height: 25px; text-align: right">
                                    <asp:Image ID="img_giaohang" runat="server" Height="25px" /></td> <!-- img_giaohang-->
                                <td style="font-size: 12px; width: 95px; color: deepskyblue; height: 25px; text-align: left">
                                    <asp:Literal ID="lit_giaohang" runat="server" Text="giaohang"></asp:Literal></td> <!-- lit_giaohang-->
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="width: 308px; height: 200px;">
                        <asp:Image ID="img_hinhanh" runat="server" Height="200px" Width="290px" /></td> <!-- img_hinhanh-->
                </tr>
                <tr>
                    <td style="width: 310px; height: 50px; font-size: 12px; vertical-align: top; color: #660000; text-align: left;">
                        <asp:Literal ID="lit_loigioithieu" runat="server" Text="loigioithieu"></asp:Literal></td> <!-- lit_mota-->
                </tr>
                <tr>
                    <td style="width: 310px; height: 60px; vertical-align: top;">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 310px">
                            <tr>
                                <td style="vertical-align: top; width: 180px; height: 60px; text-align: center">
                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 180px">
                                        <tr>
                                            <td colspan="2" style="font-weight: bold; font-size: 27px; vertical-align: bottom;
                                                width: 180px; color: red; height: 40px; text-align: center">
                                                <asp:Literal ID="lit_giaban" runat="server" Text="giaban"></asp:Literal></td> <!-- lit_giaban-->
                                        </tr>
                                        <tr>
                                            <td style="font-size: 15px; vertical-align: top; width: 60px; color: silver; height: 19px;
                                                text-align: right">
                                                Giá&nbsp; gốc:</td> <!-- lit_giagoc-->
                                            <td style="font-weight: normal; font-size: 15px; vertical-align: top; width: 120px;
                                                color: black; height: 19px; text-align: left">
                                                <asp:Literal ID="lit_giagoc" runat="server" Text="giagoc"></asp:Literal></td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align: top; width: 130px; height: 60px">
                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 130px">
                                        <tr>
                                            <td style="border-right: red 2px inset; font-size: 15px; vertical-align: bottom;
                                                border-left: red 2px outset; width: 65px; color: red; height: 18px; text-align: left">
                                                Tiết Kiệm</td>
                                            <td style="font-size: 15px; vertical-align: bottom; width: 65px; color: red; text-align: left">
                                                &nbsp;Đã Mua</td>
                                        </tr>
                                        <tr>
                                            <td style="border-right: red 2px inset; font-weight: bold; font-size: 25px; vertical-align: top;
                                                border-left: red 2px outset; width: 65px; color: red; height: 40px; text-align: center">
                                                <asp:Literal ID="lit_tietkiem" runat="server" Text="TK"></asp:Literal></td> <!-- lit_tietkiem-->
                                            <td style="font-weight: bold; font-size: 25px; vertical-align: top; width: 65px;
                                                color: red; height: 40px; text-align: center">
                                                <asp:Literal ID="lit_damua" runat="server" Text="DM"></asp:Literal></td> <!-- lit_damua-->
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="font-size: 8.4pt; color: #000000">
                    <td style="width: 310px; height: 55px; vertical-align: top; background-position: center bottom; background-repeat: no-repeat; background-color: #fbeff1;">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 310px">
                            <tr>
                                <td style="font-size: 12px; vertical-align: bottom; width: 200px; color: red; height: 15px;
                                    text-align: center">
                                    Thời gian còn lại :</td> 
                                <td rowspan="2" style="width: 110px">
                                    <asp:HyperLink ID="hyp_xem" runat="server" ImageUrl="~/KhachHang/hinh/nutxem.jpg">HyperLink</asp:HyperLink></td> <!-- nut xem-->
                            </tr>
                            <tr>
                                <td style="font-size: 20px; vertical-align: top; width: 200px; color: red; height: 40px;
                                    text-align: center"> <!-- thoi gian con lai-->
                                     <style type="text/css">
@import "jquery.countdown.css";

.defaultCountdown<%=div_id %> {width: 110px; height: 45px; }
</style>
                                                             <script type="text/javascript">
$(function () {
	shortly = new Date(); 
    shortly.setSeconds(shortly.getSeconds() + <%=sogiay[div_id - sosp] %>); 
	$('.defaultCountdown<%=div_id %>').countdown({onExpiry: liftOff,until: shortly});
});
function liftOff() { 
    $.ajax({
      type: "GET",
      url: "Default.aspx",
      data: { id: "<%=sttsp[div_id - sosp]%>"}
    }).done(function( ) {
        window.location = "HetHan.aspx?iD=<%=sttsp[div_id - sosp]%>";
       
    });
} 
</script>
                                                                 <span style="text-align:center" class="defaultCountdown<%=div_id %>">
                                                                     <div>
                                                                     </div>
                                                             </td>
                                                                 <% div_id = div_id + 1; %>
                            </tr>
                        </table>
                    </td>
                </tr>
                
            </table>
            </div>
            
        </ItemTemplate>
    </asp:DataList>&nbsp;<cc1:PagerV2_8 ID="Pager" runat="server" OnCommand="Pager_Command" />
  
    
</asp:Content>

